Cosimo Cecchi [Wed, 25 May 2011 01:29:20 +0000 (21:29 -0400)]
stylecontext: add an "image" style class
For images such as icons in GtkEntry widgets.
Cosimo Cecchi [Tue, 31 May 2011 20:13:15 +0000 (16:13 -0400)]
entry: use gtk_render_icon()
Cosimo Cecchi [Tue, 31 May 2011 20:05:31 +0000 (16:05 -0400)]
cellrendererpix: use gtk_render_icon()
Cosimo Cecchi [Sat, 21 May 2011 03:51:37 +0000 (23:51 -0400)]
image: use gtk_render_icon()
Cosimo Cecchi [Wed, 25 May 2011 00:59:50 +0000 (20:59 -0400)]
stylecontext: add gtk_render_icon()
Cosimo Cecchi [Mon, 6 Jun 2011 14:23:44 +0000 (10:23 -0400)]
themingengine: use cairo image surfaces to render state effects
This makes the code cleaner and allows this to be re-used in a
pixbuf-less future.
Cosimo Cecchi [Mon, 6 Jun 2011 14:23:06 +0000 (10:23 -0400)]
themingengine: add gtk_theming_engine_render_icon()
Renders a pixbuf in the provided rectangle, applying effects such as
'icon-shadow'.
Cosimo Cecchi [Sat, 21 May 2011 03:51:16 +0000 (23:51 -0400)]
shadow: add _gtk_icon_shadow_paint()
Paints a shadow of the current source, using the defined colors.
Cosimo Cecchi [Sat, 21 May 2011 03:48:36 +0000 (23:48 -0400)]
styleproperties: add an 'icon-shadow' style property
It's a custom property with the same semantics of text-shadow, which
works on icons and icon-like UI elements, such as spinners, arrows and
separators.
Cosimo Cecchi [Thu, 9 Jun 2011 21:05:27 +0000 (17:05 -0400)]
border-image: fix a horizontal/vertical index typo
Jorge González [Thu, 9 Jun 2011 21:05:15 +0000 (23:05 +0200)]
Updated Spanish translation
Cosimo Cecchi [Thu, 9 Jun 2011 18:56:09 +0000 (14:56 -0400)]
spinbutton: don't render an additional background below arrows
It's an entry, so it already has a background below, even when the entry
doesn't have a frame. Also, gtk_spin_button_draw_arrow() will render a
background and a frame in the arrow space anyway.
Cosimo Cecchi [Thu, 9 Jun 2011 18:55:50 +0000 (14:55 -0400)]
spinbutton: don't remove the entry style class while rendering arrows
Cosimo Cecchi [Thu, 9 Jun 2011 18:54:00 +0000 (14:54 -0400)]
border-image: don't try to unpack values from a NULL border-image
NULL is a valid value for border-image, so if it's NULL when unpacking,
don't try to access the struct fields, but just init the GValues for the
unpacked parameters.
Murray Cumming [Thu, 9 Jun 2011 18:36:14 +0000 (20:36 +0200)]
gtkcssprovider.h: Remove a trailing comma.
Richard Hughes [Fri, 3 Jun 2011 13:25:54 +0000 (14:25 +0100)]
Add optional colord support to the CUPS print module
This functionality adds a new 'Printer Profile' entry to the 'Color' page in the
UNIX print dialog if colord support is enabled.
This shows the user what color profile will be used for the settings they have
selected, and if no profile or the default profile is going to be used.
We are deliberately not allowing the user to _change_ the selected profile, as
the ICC profile is an implementation detail, and we should not change the other
print settings based on the characterization state.
The OpenICC group broadly recommend showing the profile that is used, so that
power users can be sure the correct profile is being used at the right time.
Normal users won't care, as they don't know how horrible the color match is
without profiling the printer and media.
Richard Hughes [Thu, 9 Jun 2011 14:30:31 +0000 (15:30 +0100)]
Add a 'value' GObject property to GtkPrinterOption so that it can be used with g_object_bind_property()
Kjartan Maraas [Thu, 9 Jun 2011 11:02:39 +0000 (13:02 +0200)]
Updated Norwegian bokmål translation
Benjamin Otte [Thu, 9 Jun 2011 04:21:11 +0000 (06:21 +0200)]
testtreeview: Don't use deprecated classes to make things interesting
Benjamin Otte [Thu, 9 Jun 2011 04:20:42 +0000 (06:20 +0200)]
testgtk: Fix deprecation
Benjamin Otte [Thu, 9 Jun 2011 04:18:10 +0000 (06:18 +0200)]
gail: Fix for new box handling
Benjamin Otte [Thu, 9 Jun 2011 04:16:23 +0000 (06:16 +0200)]
gail: Fix scrollbar index_in_parent() implementation
Benjamin Otte [Thu, 9 Jun 2011 04:00:34 +0000 (06:00 +0200)]
gail: Remove unreachable code
Benjamin Otte [Thu, 9 Jun 2011 03:41:53 +0000 (05:41 +0200)]
reftests: ADd test for overlapping border-image slices
Benjamin Otte [Thu, 9 Jun 2011 02:50:12 +0000 (04:50 +0200)]
themingengine: Don't modify pattern
Instead, scale/unscale the cairo_t.
Benjamin Otte [Thu, 9 Jun 2011 02:48:40 +0000 (04:48 +0200)]
reftests: Add border-image-repeat
Tests that border-image-repeat is rendered correctly.
The reftest is done via toolbars stuffed into a GtkFixed using
background-image and images tuned for it.
Benjamin Otte [Wed, 8 Jun 2011 23:41:18 +0000 (01:41 +0200)]
border-image: Redo border-image rendering
The new code is smaller, less crashy and correct(er), but arguably more
complex. I'd have liked to make it simpler, but this border image
algorithm is complex...
Benjamin Otte [Wed, 8 Jun 2011 05:04:38 +0000 (07:04 +0200)]
border-image-repeat: Fix order of hrepeat and vrepeat
Benjamin Otte [Tue, 7 Jun 2011 23:58:46 +0000 (01:58 +0200)]
border-image: Don't use NEAREST filtering
use EXTEND_PAD instead to avoid borders.
Benjamin Otte [Tue, 7 Jun 2011 14:48:47 +0000 (16:48 +0200)]
borderimage: No need to resolve
border-image is a shorthand, so it's unpacked unresolved and repacked
resolved.
Cosimo Cecchi [Sun, 5 Jun 2011 20:49:54 +0000 (16:49 -0400)]
border-image: move private types to gtkcsstypes.c
Cosimo Cecchi [Wed, 1 Jun 2011 14:23:36 +0000 (10:23 -0400)]
border-image: don't cache the cairo_surface_t in GtkBorderImage
It's not useful to cache these surfaces here, as the GtkBorderImage will
be always generated on the fly, being a shorthand property.
This also allows to get rid of the intermediate image surfaces for
rendering the slices; we now use cairo_surface_create_for_rectangle()
to proxy the slices from the source surface to the rendered area, which
should also yield better performance.
Cosimo Cecchi [Tue, 31 May 2011 13:32:00 +0000 (09:32 -0400)]
docs: expand the docs for border-image
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Cosimo Cecchi [Fri, 27 May 2011 22:13:35 +0000 (18:13 -0400)]
border-image: ensure image->resolved is set when resolving the gradient
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Cosimo Cecchi [Thu, 26 May 2011 22:12:00 +0000 (18:12 -0400)]
reftests: add reftests for border-image with gradient and url sources
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Cosimo Cecchi [Thu, 26 May 2011 19:54:38 +0000 (15:54 -0400)]
styleproperty: turn border-image into a shorthand property
It's composed by
- border-image-source: a cairo_pattern_t holding an image from file or a
gradient
- border-image-slice: a GtkBorder containing the slice offsets to apply
on the image
- border-image-repeat: a GtkRepeatType for the image
We deviate from pure CSS3 in the following ways:
* border-image-width is assumed to be always 1, i.e. always equal to
what's specified by border-width. I don't think it's a particularly
useful property to have, but we could add it later if needed.
* border-image-outset is absent, as we can't render outside of the
allocation yet.
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Cosimo Cecchi [Thu, 26 May 2011 19:53:28 +0000 (15:53 -0400)]
border-image: change Gtk9Slice to GtkBorderImage
It's a similar private type, which is much more powerful, and respects
the CSS rendering specification for border-image.
https://bugzilla.gnome.org/show_bug.cgi?id=651194
Benjamin Otte [Wed, 8 Jun 2011 13:47:46 +0000 (15:47 +0200)]
gdk: Make background changes queue a repaint
For client-side windows, we need to queue a repaint when the background
changes. For native windows, the windowing system does take care of it,
but client-side windows are our own, so we gotta do it manually.
https://bugzilla.gnome.org/show_bug.cgi?id=652102
Benjamin Otte [Wed, 8 Jun 2011 13:46:50 +0000 (15:46 +0200)]
gdk: Don't set backgrounds on input-only windows
It doesn't make sense to allow a background on input-only windows, so
instead of setting it and then never using it, we just don't ever set
it.
Benjamin Otte [Mon, 6 Jun 2011 17:40:35 +0000 (19:40 +0200)]
toolpalette: Remove composite support
It seems to be very broken wrt input handling, causing random icons to
light up etc.
So until this is fixed, better remove composite support. It only removes
animations, so it's not a big loss for functionality.
Michal Suchanek [Wed, 8 Jun 2011 21:24:48 +0000 (16:24 -0500)]
bgo#652045 - Initialize local_only in GtkFileChooserEntry
This has to be done also when we switch to the entry, otherwise completion for
non-local URIs won't work.
Marek Kašík [Wed, 8 Jun 2011 17:22:31 +0000 (18:22 +0100)]
Trivial optimisation in GtkPrinterOptionWidget
Signed-off-by: Richard Hughes <richard@hughsie.com>
Richard Hughes [Wed, 8 Jun 2011 15:52:43 +0000 (16:52 +0100)]
Fix
93957459d8613eeb9413b4e5a32d4ccec6036160
It seems GtkHBox got dropped since my patch was reviewed. Oopsie.
Richard Hughes [Wed, 8 Jun 2011 11:02:39 +0000 (12:02 +0100)]
Add a GtkPrinterOptionWidget type of INFO to just show informational text from the print backend
This fixes https://bugzilla.gnome.org/show_bug.cgi?id=652103
Javier Jardón [Wed, 8 Jun 2011 14:23:53 +0000 (15:23 +0100)]
gtk: Clean some includes
Javier Jardón [Wed, 8 Jun 2011 12:25:54 +0000 (13:25 +0100)]
gtk[h/v]box: Recommend the use of GtkGrid.
Matthias Clasen [Wed, 8 Jun 2011 02:31:45 +0000 (22:31 -0400)]
Don't use GtkAlignments
Matthias Clasen [Wed, 8 Jun 2011 02:31:34 +0000 (22:31 -0400)]
Don't use a GtkAlignment
Matthias Clasen [Wed, 8 Jun 2011 02:17:06 +0000 (22:17 -0400)]
GtkFileChooserEntry: don't use a GtkAlignment
Matthias Clasen [Wed, 8 Jun 2011 02:03:19 +0000 (22:03 -0400)]
Use buttonboxes instead of hbuttonboxes
Matthias Clasen [Wed, 8 Jun 2011 01:50:00 +0000 (21:50 -0400)]
Drop unneeded includes: gtkalignment.h
Matthias Clasen [Wed, 8 Jun 2011 01:44:24 +0000 (21:44 -0400)]
Deprecate h/v variants of GtkBox
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:43:32 +0000 (21:43 -0400)]
Deprecate h/v variants of GtkScale
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:40:12 +0000 (21:40 -0400)]
Deprecate h/v subclasses of GtkPaned
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:38:15 +0000 (21:38 -0400)]
Deprecate h/v subclasses of GtkScrollbar
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:35:57 +0000 (21:35 -0400)]
Deprecate h/v subclasses of GtkSeparator
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:32:49 +0000 (21:32 -0400)]
Deprecate h/v buttonbox subclasses
This has been discussed in bug 541009.
Matthias Clasen [Wed, 8 Jun 2011 01:29:01 +0000 (21:29 -0400)]
Use separators instead of hseparators
Matthias Clasen [Wed, 8 Jun 2011 01:25:20 +0000 (21:25 -0400)]
More include cleanups
Matthias Clasen [Wed, 8 Jun 2011 01:23:07 +0000 (21:23 -0400)]
More include cleanups
Matthias Clasen [Wed, 8 Jun 2011 01:16:00 +0000 (21:16 -0400)]
More include cleanups
Matthias Clasen [Wed, 8 Jun 2011 01:12:00 +0000 (21:12 -0400)]
More include cleanups
Matthias Clasen [Wed, 8 Jun 2011 00:54:23 +0000 (20:54 -0400)]
Clean up more includes
Mainly removing unused h/v includes, but also adding some that
will be necessary as replacements.
Matthias Clasen [Tue, 7 Jun 2011 23:56:27 +0000 (19:56 -0400)]
Use boxes instead of hboxes
Matthias Clasen [Tue, 7 Jun 2011 23:56:12 +0000 (19:56 -0400)]
Use boxes instead of hboxes
Matthias Clasen [Tue, 7 Jun 2011 23:55:46 +0000 (19:55 -0400)]
GtkStatusbar: derive from GtkBox, not GtkHBox
Matthias Clasen [Tue, 7 Jun 2011 23:55:24 +0000 (19:55 -0400)]
GtkPrinterOptionWidget: derive from GtkBox, not GtkHBox
Matthias Clasen [Tue, 7 Jun 2011 23:55:03 +0000 (19:55 -0400)]
GtkInfoBar: derive from GtkBox, not GtkHBox
Matthias Clasen [Tue, 7 Jun 2011 23:54:40 +0000 (19:54 -0400)]
GtkFileChooserButton: derive from GtkBox, not GtkHBox
Matthias Clasen [Tue, 7 Jun 2011 23:30:51 +0000 (19:30 -0400)]
docs: fix parameter name mismatches
Matthias Clasen [Tue, 7 Jun 2011 22:39:15 +0000 (18:39 -0400)]
tests: Use boxes instead of vboxes
Matthias Clasen [Tue, 7 Jun 2011 22:38:46 +0000 (18:38 -0400)]
Use boxes instead of vboxes
Matthias Clasen [Tue, 7 Jun 2011 22:38:28 +0000 (18:38 -0400)]
Use boxes instead of vboxes
Matthias Clasen [Tue, 7 Jun 2011 22:38:01 +0000 (18:38 -0400)]
Use boxes instead of vboxes
Matthias Clasen [Tue, 7 Jun 2011 22:37:36 +0000 (18:37 -0400)]
Add a missing include
Matthias Clasen [Tue, 7 Jun 2011 22:36:57 +0000 (18:36 -0400)]
GtkFileChooserDefault: derive from GtkBox, not GtkVBox
Matthias Clasen [Tue, 7 Jun 2011 22:36:22 +0000 (18:36 -0400)]
GtkFileChooserWidget: derive from GtkBox, not GtkVBox
Matthias Clasen [Tue, 7 Jun 2011 22:35:46 +0000 (18:35 -0400)]
GtkRecentChooserDefault: derive from GtkBox, not GtkVBox
Matthias Clasen [Tue, 7 Jun 2011 22:35:28 +0000 (18:35 -0400)]
GtkRecentChooserWidget: derive from GtkBox, not GtkVBox
Matthias Clasen [Tue, 7 Jun 2011 22:34:57 +0000 (18:34 -0400)]
GtkFontSelection: derive from GtkBox, not GtkVBox
Matthias Clasen [Tue, 7 Jun 2011 22:34:34 +0000 (18:34 -0400)]
GtkColorSel: derive from GtkBox, not GtkVBox
Matthias Clasen [Tue, 7 Jun 2011 22:32:48 +0000 (18:32 -0400)]
Don't include gtk.h here
Matthias Clasen [Tue, 7 Jun 2011 22:32:24 +0000 (18:32 -0400)]
Remove an unneeded include
Matthias Clasen [Tue, 7 Jun 2011 17:16:58 +0000 (13:16 -0400)]
GtkPageSetupUnixPrintDialog: remove an unneeded include
Matthias Clasen [Tue, 7 Jun 2011 17:14:42 +0000 (13:14 -0400)]
GtkPrintUnixDialog: remove an unneeded include
Matthias Clasen [Tue, 7 Jun 2011 17:04:22 +0000 (13:04 -0400)]
Remove an unneeded include
Matthias Clasen [Tue, 7 Jun 2011 16:59:11 +0000 (12:59 -0400)]
GtkPathBar: don't use a GtkAlignment
Javier Jardón [Mon, 6 Jun 2011 15:47:10 +0000 (16:47 +0100)]
gail: Use GdkRGBA instead GdkColor
Matthias Clasen [Tue, 7 Jun 2011 16:39:30 +0000 (12:39 -0400)]
GtkMountOperation: don't use a GtkAlignment
Javier Jardón [Tue, 7 Jun 2011 15:47:33 +0000 (16:47 +0100)]
docs: Make "migrating to GtkStyleContext" a separate chapter
Matthias Clasen [Tue, 7 Jun 2011 15:05:50 +0000 (11:05 -0400)]
GtkGrid: Fix a size allocation problem
We need pay attention the the request mode when doing size allocation.
The code was using request mode for requisition, but orientation
for allocation.
Also add a reftest that exhibits the issue, courtesy of
Benjamin Otte.
Matthias Clasen [Tue, 7 Jun 2011 13:51:35 +0000 (09:51 -0400)]
GtkAboutDialog: Don't use an alignment
Use align and margin widget properties instead.
Javier Jardón [Mon, 6 Jun 2011 18:03:23 +0000 (19:03 +0100)]
gail/tests: Use const instead G_CONST_RETURN
Javier Jardón [Mon, 6 Jun 2011 18:02:06 +0000 (19:02 +0100)]
gail: use const instead G_CONST_RETURN
Kjartan Maraas [Tue, 7 Jun 2011 06:21:30 +0000 (08:21 +0200)]
Updated Norwegian bokmål translation
Chun-wei Fan [Tue, 7 Jun 2011 03:16:57 +0000 (11:16 +0800)]
Update Windows Resource template information
Matthias Clasen [Tue, 7 Jun 2011 02:36:39 +0000 (22:36 -0400)]
GtkUnixPrintDialog: Don't use GtkAlignment
It is going to be deprecated soon. Instead, use
widget align and margin properties.
Matthias Clasen [Tue, 7 Jun 2011 02:31:31 +0000 (22:31 -0400)]
GtkCustomUnixPaperDialog: don't use a GtkAlignment
Those are going to be deprecated sometime soon.
Instead, use widget align and margin properties.
Bastien Nocera [Tue, 7 Jun 2011 01:15:53 +0000 (21:15 -0400)]
gdk: Update keysyms list from latest X.org headers
Fixed the touchpad on/off keybindings in gnome-settings-daemon.
https://bugzilla.gnome.org/show_bug.cgi?id=651706
Kazuki Iwamoto [Mon, 6 Jun 2011 23:33:23 +0000 (19:33 -0400)]
Avoid a crash in gtk_im_context_ime_reset
When GTK+ runs with inputim-ime.dll module, there is NULL
pointer reference. Because "context_ime->client_window" may
be NULL in gtk_im_context_ime_reset.
https://bugzilla.gnome.org/show_bug.cgi?id=644906